Create Policy
API Endpoints
Create RAI Policy
POST
Create Policy
POSTDocumentation Index
Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
Use this file to discover all available pages before exploring further.
/v1/rai/policiesCreate a new Responsible AI (RAI) policy.
Description
This endpoint allows creating a new RAI policy including configuration for topics, keywords, toxicity checks, prompt injection protection, and PII/secrets detection.Request
Headersx-api-key: API key for authentication (required)Content-Type:application/json
Response
200 OK
422 Unprocessable Entity
Curl Example
Authorizations
Body
application/json